<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>行政区经纬度范围添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加图片类型信息':action=='Modify'?'修改图片类型信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'base_district_coord', 'form': 'dataForm' ,'primary_key':'id' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">行政区信息</div>
        </div>
        <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">边界编号</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入边界编号', trigger: 'blur' }]"
                prop="District_SerialNumber">
                <el-input v-model="dataForm.District_SerialNumber" class="borderless-input" placeholder="请输入边界编号" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">省/市/区(县)</div>
              </template>
              <el-form-item>
                <el-cascader :disabled="action=='Modify'" @change="changeValue" v-model="cityValue" filterable
                  class="borderless-input"
                  :props="{value:'value',label:'label',children:'children',checkStrictly: true}"
                  placeholder="请选择省/市/区/街道" :options="village" style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">街道(乡镇)/区委会(村委会)</div>
              </template>
              <el-form-item>
                <el-cascader :disabled="action=='Modify'" @change="changeValue1" v-model="cityValue1" filterable
                  class="borderless-input" clearable
                  :props="{value:'ProvinceNumber',label:'Province',children:'children',checkStrictly: true}"
                  placeholder="请选择街道(乡镇)/区委会(村委会)" :options="village1" style="width: 100%"></el-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">坐落单位名称</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入坐落单位名称', trigger: 'blur' }]" prop="ZLDWMC">
                <el-input v-model="dataForm.ZLDWMC" class="borderless-input" placeholder="请输入坐落单位名称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">边界类型</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请选择边界类型', trigger: 'change' }]" prop="District_Type">
                <el-select clearable v-model.trim="dataForm.District_Type" placeholder="请选择边界类型" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in [{label:'镇边界',value:'0'},{label:' 村边界',value:'1'}]" :key="index" :label="item.label" :value="item.value"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">边界坐标集</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入边界坐标集', trigger: 'blur' }]" prop="Coords">
                <el-input type="textarea" :autosize="{ minRows: 2 ,maxRows:10}" @input="InputCoords"
                  v-model="dataForm.Coords" class="borderless-input" placeholder="请输入网格地理坐标集" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">点坐标</div>
              </template>
              <el-form-item :rules="[{ required: true, message: '请输入中心坐标', trigger: 'blur' }]" prop="Coord">
                <el-input type="textarea" disabled :autosize="{ minRows: 2}" v-model="dataForm.Coord"
                  class="borderless-input" placeholder="请输入中心坐标" />
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
      </div>

    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" :loading="loading" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../utils/turf.min.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>